import Layout from "@/layout/index";

export default {
    //订单管理
    path: '/order',
    redirect: '/order/orderAll',
    meta: {
        path: 'order'
    },
    component: Layout,
    children: [
        {
            //全部订单
            path: 'orderAll',
            name: 'orderAll',
            meta: {
                path: 'order/orderAll'
            },
            component: () => import('@/views/order/orderAll/index'),
        },
        {
            //订单详情
            path: 'orderDetails',
            name: 'orderDetails',
            meta: {
                isHideSidebar: true,
                path: 'order/orderDetails'
            },
            component: () => import('@/views/order/orderDetails/index'),
        },
        {
            //待办订单
            path: 'orderAgency',
            name: 'orderAgency',
            meta: {
                path: 'order/orderAgency'
            },
            component: () => import('@/views/order/orderAgency/index'),
        },
        {
            //已办订单
            path: 'orderHistory',
            name: 'orderHistory',
            meta: {
                path: 'order/orderHistory'
            },
            component: () => import('@/views/order/orderHistory/index'),
        },
    ]
}
